package team.seekers.catering.community.entity.dto.update;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class PostUpdateDTO {
    @NotBlank(message = "帖子id不能为空")
    @Size(max = 20, message = "帖子id长度不能超过19")
    private String id;

    @ApiModelProperty(value = "帖子名称")
    private String name;

    private List<String> picture;

    @ApiModelProperty(value = "帖子内容")
    private String content;
}
